import axios from '@/libs/api.request'

export const getAllMenuList = (params) => {
  return axios.request({
    url:'/Menu/getAllList',
    method:'get'
  })
}
export const addPermission = (data) => {
  return axios.request({
    url: '/module/Save',
    data,
    method: 'post'
  })
}
export const editPermission = (data) => {
  return axios.request({
    url: '/module/Save',
    data,
    method: 'post'
  })
}
export const deletePermission = (params) => {
  return axios.request({
    url:'/Menu/delMenuByIds?ids='+params,
    method:'get'
  })
}




